﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Transport.Core.Models.Settings;

namespace Transport.Core.Models.Parcels
{
    public class ParcelReportModel
    {
        public int No { get; set; }
        public string TrackingNumbers { get; set; }
        public string AddressTo { get; set; }
        private string _customerName;
        public string CustomerName
        {
            get
            {
                return string.IsNullOrEmpty(_customerName) ? "Khách lẻ" : _customerName;
            }
            set
            {
                _customerName = value;
            }
        }
        public int Weight { get; set; }
        public string WeightString
        {
            get
            {
                return Weight.ToString() + "g";
            }
        }
        public int PaymentType { get; set; }
        public string Note
        {
            get
            {
                return PaymentType == (int)PaymentTypes.EnumPaymentTypes.Collection ? "ĐNTT" : "";
            }
        }
        public List<StateProvince> StateProvinces { get; set; }
        public List<Region> Regions { get; set; }
    }
}
